package com.creative.xcx.service;

import com.creative.xcx.domain.ThematicSelection;
import com.creative.core.page.TableDataInfo;
import com.creative.xcx.domain.vo.ThematicSelectionVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 专题精选
 * @author ling
 * @date 2025-02-26
 */
@Transactional(rollbackFor = Exception.class)
public interface ThematicSelectionService {

    /**
     * 新增
     */
    public Integer insert(ThematicSelection thematicSelection);

    /**
     * 删除
     */
    public Integer delete(String tsId);

    /**
     * 批量删除
     */

    public Integer deleteBatch(String[]   ids);


    /**
     * 更新
     */
    public Integer update(ThematicSelection thematicSelection);

    /**
     * 根据主键 id 查询
     */
    public ThematicSelectionVo selectById(String tsId);
    /**
     * 分页查询
     */
    public  TableDataInfo selectThematicSelectionList(ThematicSelection thematicSelection);

    List<ThematicSelectionVo> selectMpThematicSelectionList(ThematicSelection thematicSelection);
    /**
     * 批量刪除
     * @author ling
     * @date 2025/02/26
     **/
    public List<ThematicSelectionVo> exportBatch(String[]   ids);

    /**
     * 查询类型列表
     *
     * @return {@link List }<{@link ThematicSelectionVo }>
     * @author ling
     * @date 2025/03/01
     */
    List<ThematicSelectionVo> selectTypeList();


}
